<#setting number_format = "#"/>
<#setting datetime_format = dateTimeFormat/>
<#assign logged = logged?default(false)/>
<#assign language = language?default("en_US")/>
<#assign hasCodeBlock = hasCodeBlock?default(false)/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${encoding}" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta name="description" content="${metaDescription}" />
<meta name="keywords" content="${metaKeywords}" />
<#--<link type="image/x-icon" href="${contextPath}/templates/${templateName}/images/favicon.ico" rel="shortcut icon">
-->
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/style.css?${startupTime} );</style>
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/${language}.css?${startupTime} );</style>
<style type="text/css">
 

</style>
<!--[if lte IE 6]>
<style type="text/css">
/* styling specific to Internet Explorer IE5.5 and IE6. Yet to see if IE7 handles li:hover */

/* Get rid of any default table style */
table {
border-collapse:collapse;
margin:0;
padding:0;
}
/* ignore the link used by 'other browsers' */
#menus ul li a.hide, #menus ul li a:visited.hide {
display:none;
}
/* set the background and foreground color of the main menu link on hover */
#menus ul li a:hover {
color:#fff;
background:#01336B;
}
/* make the sub menu ul visible and position it beneath the main menu list item */
#menus ul li a:hover ul {
display:block;
position:absolute;
top:31px;
right:0;
width:82px;
}
/* style the background and foreground color of the submenu links */
#menus ul li a:hover ul li a {
background:#DEE3E7;
color:#000;
}
/* style the background and forground colors of the links on hover */
#menus ul li a:hover ul li a:hover {
background:#176EAC;
color:#F0F9FF;
}

</style>

<![endif]-->
<title>${pageTitle?default("开源电子网")?html}</title>
 
<script type="text/javascript"> 
function AddFavorite(sURL, sTitle)
{try
   {window.external.addFavorite(sURL, sTitle);
   }
   catch (e)
   { try
       { window.sidebar.addPanel(sTitle, sURL, "");
       }
       catch (e)
       {alert("加入收藏失败，请使用Ctrl+D进行添加");
       }
   }
}
 
</script>  
</head>
<body class="${language}"   >

<div id="newHeader"   >
   <div id="logoImage">
   	  <a href="${contextPath}" target="_blank"> <img src="${contextPath}/templates/${templateName}/images/logo.jpg" /></a>
   </div>
   <div>
     <div id="headContent">
     
     <font style="color:green;">
      <#if logged >
         <a href="${JForumContext.encodeURL("/user/edit/${session.userId}")}" >${session.username}</a>,   
     </#if> 
      </font>
     	 <font style="color:green;"> 您好,欢迎您!&nbsp; &nbsp;</font>
     	 
      <#if logged > 
     	 <font>
     	 <a  href="${JForumContext.encodeURL("/pm/inbox")}">
											<#if (session.privateMessages > 0)>
											  <img src="${contextPath}/templates/${templateName}/images/newpm.gif" border="0"  />
												${I18n.getMessage("ForumBase.newPm")}: (${session.privateMessages})  
											<#else>
												收件箱  
											</#if>
		 </a>
		 |
     	</font>
      </#if>	
 
     	 <font>
     	 	<#if !logged >
						<a href="${JForumContext.encodeURL("/user/insert")}">${I18n.getMessage("ForumBase.register")}</a></span> |
						<a href="${JForumContext.encodeURL("/user/login")}">${I18n.getMessage("ForumBase.login")}</a>&nbsp; </span>
			  <#else>
			      <a  href="${JForumContext.encodeURL("/user/logout")}">${I18n.getMessage("ForumBase.logout")} [${session.username}] </a></span>
				</#if>
     	 </font>
    	  
     	 <br /> 
     	 <div style="margin-top:10px;">
     	 <font>
         <a  onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.openedv.com')">设为首页 |</a>
         <a  onclick="AddFavorite('http://www.openedv.com','开源电子网');">加入收藏</a>   	 </font>
     	 </div>
     </div>
     <div  id="menus" >
       <ul>
           <li ><a class="hide" href="${JForumContext.encodeURL("/help/list")}">${I18n.getMessage("Forum.help")}</a>
            <!--[if lte IE 6]>
             <a href="${JForumContext.encodeURL("/help/list")}">${I18n.getMessage("Forum.help")}
             <table><tr><td></td></tr></table>
             </a>
             <![endif]-->
           </li>
      <#-- <li><a class="hide" href="${homepageLink}">${I18n.getMessage("ForumBase.backToSite")}</a></li> -->
          <li><a class="hide" href="${JForumContext.encodeURL("/forums/list")}">${I18n.getMessage("ForumBase.backToSite")}</a>
             <!--[if lte IE 6]>
               <a href="${JForumContext.encodeURL("/forums/list")}">${I18n.getMessage("ForumBase.backToSite")}
               <table><tr><td></td></tr></table>
               </a>
            <![endif]-->
         </li>
       	   <li><a class="hide" href="${JForumContext.encodeURL("/forums/list")}">资料查询</a>
        <!--[if lte IE 6]>
         <a href="${JForumContext.encodeURL("/forums/list")}">资料查询
           <table><tr><td>
              <![endif]-->     
             <ul>
               <li><a target="_blank" href="http://www.ic-on-line.cn/" title="icOnline">icOnline</a></li>
               <li><a target="_blank" href="http://www.hackchina.com/" title="hickchina">源码查询</a></li>
             </ul>
         <!--[if lte IE 6]>
           </td></tr></table>
            </a>
           <![endif]-->
          </li>
          <li><a class="hide" href="${JForumContext.encodeURL("/search/filters")}">${I18n.getMessage("ForumBase.search")}</a>
          <!--[if lte IE 6]>
          <a href="${JForumContext.encodeURL("/search/filters")}">${I18n.getMessage("ForumBase.search")}
          <table><tr><td></td></tr></table>
          </a>
        <![endif]-->
          </li>
          
          <li><a class="hide" href="${JForumContext.encodeURL("/allTopics/list")}">${I18n.getMessage("ForumBase.allForum")}</a>
         <!--[if lte IE 6]>
          <a href="${JForumContext.encodeURL("/allTopics/list")}">${I18n.getMessage("ForumBase.allForum")}
          <table><tr><td></td></tr></table>
          </a>
        <![endif]-->
          </li>

          <li><a class="hide" href="${JForumContext.encodeURL("/kuTopics/list")}"">${I18n.getMessage("ForumBase.kuTie")}</a>
        <!--[if lte IE 6]>
          <a href="${JForumContext.encodeURL("/kuTopics/list")}"">${I18n.getMessage("ForumBase.kuTie")}
          <table><tr><td></td></tr></table>
          </a>
        <![endif]-->
          </li>


          <li><a class="hide" href="${JForumContext.encodeURL("/recentTopics/list")}">${I18n.getMessage("ForumBase.newestPost")}</a>
         <!--[if lte IE 6]>
          <a href="${JForumContext.encodeURL("/recentTopics/list")}">${I18n.getMessage("ForumBase.newestPost")}
          <table><tr><td></td></tr></table>
          </a>
        <![endif]-->
          </li>

          <li><a class="hide" href="${JForumContext.encodeURL("/topicsByPublishTime/list")}">${I18n.getMessage("ForumBase.newestPublish")}</a>
         <!--[if lte IE 6]>
          <a href="${JForumContext.encodeURL("/topicsByPublishTime/list")}">${I18n.getMessage("ForumBase.newestPublish")}
          <table><tr><td></td></tr></table>
           </a>
        <![endif]-->
          </li>
<#if logged>
          <li><a class="hide" href="${JForumContext.encodeURL("/user/edit/${session.userId}")}">个人中心</a>
         <!--[if lte IE 6]>
           <a href="${JForumContext.encodeURL("/forums/list")}">个人中心
           <table><tr><td>
         <![endif]-->            
             <ul>
               <li><a href="${JForumContext.encodeURL("/user/listFriend")}"  >${I18n.getMessage("ForumBase.my.friend")}</a></li>
      <#if bookmarksEnabled>
               <li><a href="${JForumContext.encodeURL("/bookmarks/list/${session.userId}")}"  >${I18n.getMessage("Bookmarks.myBag")}</a></li>
      </#if>
               <li><a href="${JForumContext.encodeURL("/recentTopics/showTopicsByUser/${session.userId}")}"  >${I18n.getMessage("ForumBase.my.topic")}</a></li>
               <li><a href="${JForumContext.encodeURL("/posts/listByUser/${session.userId}")}"  >${I18n.getMessage("ForumBase.my.post")}</a></li>
               <li><a href="${JForumContext.encodeURL("/user/edit/${session.userId}")}" >${I18n.getMessage("ForumBase.profile")}</a></li>
                <li><a href="${JForumContext.encodeURL("/pm/inbox")}" >站内短信</a></li>
             </ul>
          <!--[if lte IE 6]>
            </td></tr></table>
            </a>
          <![endif]-->
          </li>
</#if>     
  
  
       </ul>
    </div>
   </div>
 
 </div>
 
 <div id="bodyContent">

